<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/res/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/res/css/WdatePicker.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/res/css/skin_/form.css" />
<link href="<%=request.getContextPath() %>/res/umeditor/themes/default/_css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/global.js"></script>

<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/jquery.easyui.min.js"></script>

<script type="text/javascript">
window.UMEDITOR_HOME_URL = 'umeditor/';  // 请换成绝对路径
</script>
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/umeditor.config.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/editor_api.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/res/umeditor/lang/zh-cn/zh-cn.js"></script>


<title>基础信息</title>
</head>
<body>
<div id="container">
	<div id="hd">
    </div>
    <form action="<%=request.getContextPath() %>/manager/role/role.do" method="post">
    <div id="bd">
    	<input type="hidden" name='reqCode' value='addRole'/>
    	<div id="main">
            <h2 class="subfild">
            	<span>部门信息</span>
            </h2>
            <div class="subfild-content base-info">
            	<div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>部门名称</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="部门名称" id="name" name="name"/>
                    </div>
                </div>
                 <div class="kv-item ue-clear">
                	<label>所在部门</label>
                        <select id="cc" class="easyui-combotree" style="width:377px;height:30px" >
                        	
                  		</select>
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>备注</label>
                	<div class="kv-item-content">
                    	<textarea name="mark" placeholder="备注" id="content" style="width:500px;height:140px;"></textarea>
                    </div>
                </div>
            </div>
            <div class="buttons">
                <input class="button" type="button" id="btnSave"value="保存" />
            </div>
        </div>
        </form>
    </div>
</div>
</body>

<script type="text/javascript">
	$('select').select();
	showRemind('input[type=text],textarea','color5');
   	
   	$('#cc').combotree({ 
    	url: '<%=request.getContextPath()%>/manager/dept/dept.do?reqCode=findDeptTree'  
	}); 
   	
    
    $('#btnSave').click(function(){
    	//发起ajax请求
    	$.ajax({
    		type:'post',
    		url:'<%=request.getContextPath() %>/manager/role/role.do',
    		data:{
    			reqCode:'addRole',
    			name:$('#name').val(),
    			mark:$('#content').val()
    		},
    		success:function(data){
    			if(data=='Y'){
    			
    			}else{
    				
    			}
    		}
    	});
    	
    });
</script>
</html>
